import type { PageDoc } from "@/types/home";
import { http } from "@/utils/request";

// 搜索
export const getsearchAPI = (keyword: number) =>
  http<PageDoc>('/patient/home/search/tips', 'GET', { keyword });


export const getsearchTypeAPI = (current: number, pageSize: number, keyword: string, type: string) =>
  http<PageDoc>('/patient/home/search', 'GET', { current, pageSize, keyword, type });

// 热门搜索
export const getsearchHotAPI = () =>
  http('/patient/home/search/hot', 'GET');
